<?php
/**
 * @author bbernath
 *         Date: 09.10.13
 *         Time: 11:22
 * @version 1.0.3
 */

if (isset($_GET['action'])) {
    if (isset($_GET['site'])) {
        if ($_GET['site'] == "login") {
            include 'admin/login.php';
        } else if ($_GET['site'] == "news") {
            include 'news/admin/manage.php';
        } else if ($_GET['site'] == "add_news") {
            include 'news/admin/add_news.php';
        } else if ($_GET['site'] == "edit_news") {
            include 'news/admin/edit_news.php';
        } else if ($_GET['site'] == "delete_news") {
            include 'news/admin/delete_news.php';
        } else if ($_GET['site'] == "comments") {
            include 'news/admin/manage_comments.php';
        } else if ($_GET['site'] == "edit_comment") {
            include 'news/admin/edit_comment.php';
        } else if ($_GET['site'] == "delete_comment") {
            include 'news/admin/delete_comment.php';
        }
    } else {
        include 'admin/login.php';
    }
}